<?php
header('Content-Type:text/html; charset=windows-874');

$re_diploma_id = $_POST['re_diploma_id'];
$re_diploma_stu_id = $_POST['re_diploma_stu_id'];
$re_diploma_prefix = $_POST['re_diploma_prefix'];
$re_diploma_stu_name = iconv('utf-8', 'tis-620', $_POST['re_diploma_stu_name']);
$re_diploma_stu_faculty = $_POST['re_diploma_stu_faculty'];
$re_diploma_stu_major = $_POST['re_diploma_stu_major'];
$re_diploma_stu_comment = iconv('utf-8', 'tis-620', $_POST['re_diploma_stu_comment']);
$course_id = $_POST['course_id'];

include 'connect.php';

$sqls = "use eiso";
$sqls .= " update request_diploma set ";
$sqls .= " re_diploma_stu_id = '".$re_diploma_stu_id."' ";
$sqls .= " ,re_diploma_prefix = ".$re_diploma_prefix." ";
$sqls .= " ,re_diploma_stu_name = '".$re_diploma_stu_name."' ";
$sqls .= " ,re_diploma_stu_faculty = ".$re_diploma_stu_faculty." ";
$sqls .= " ,re_diploma_stu_major = ".$re_diploma_stu_major." ";
$sqls .= " ,re_diploma_stu_comment = '".$re_diploma_stu_comment."' ";
$sqls .= " ,course_id = ".$course_id." ";
$sqls .= " where re_diploma_id = ".$re_diploma_id."";

$result = mssql_query($sqls);

?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
</head>